import Navigation from 'hybrid-navigation'
import { AppPage } from '../AppPage'
import TestPage from '../pages/TestPage'
import HomePage from '../pages/HomePage'
import LayoutPage from '../pages/LayoutPage'
import { AnimationPage } from '../pages/AnimationPage'

export function setup() {
  // 重要必须
  Navigation.startRegisterComponent()

  // 注意，你的每一个页面都需要注册
  Navigation.registerComponent(AppPage.HomePage, () => HomePage)
  Navigation.registerComponent(AppPage.TestPage, () => TestPage)
  Navigation.registerComponent(AppPage.LayoutPage, () => LayoutPage)
  Navigation.registerComponent(AppPage.AnimationPage, () => AnimationPage)

  // 重要必须
  Navigation.endRegisterComponent()
}
